$(function() {
	
	for(let e of document.getElementsByClassName('upload-btn')){
		let id = $(e).attr("id").replace(/BtnId/g,'').replace(/PreId/g, '');
		uploader = new $WebUpload(id);
		uploader.setUploadBarId(id);
		uploader.init();
		}
	// 初始化头像上传
//    var avatarUp = new $WebUpload("brandImg");
//    var avatarUp = new $WebUpload("brandImg");
//    avatarUp.setUploadBarId("progressBar");
//    avatarUp.init();
  //  BrandsInfoDlg.getBrandImg();
   
});